package priv.lhy.activity.services.processor.constants;

/**
 * author : lihy
 * date : 2019/2/16 9:23
 */
public class DrawContants {

    //抽奖奖项的所有item key
    public static final String DRAW_ITEM = "DRAW:ITEM";
    //奖项对应的奖品key
    public static final String DRAW_AWARD = "DRAW:AWARD:";
    //正在抽奖的redis key前缀
    public static final String DRAWING_PREFIX = "DRAWING:";
    //整个活动的所有key的过期时间：10天
    public static final int EXPIRE_TIME = 10;

    public enum isexist {
        UNEXIST("0"), EXIST("1");
        private String value;

        isexist(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }

    public enum award_type_enum {
        JD_CARD(1), FINANCE(2), NONE(3);
        private int value;

        award_type_enum(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }
}
